import React from 'react'
import { getLogin} from '@/api/shopping'
import store from 'store2'
import { Outlet } from 'react-router-dom'
import './index.less'
export default function Index() {
  getLogin().then(res => {
    store.set('shopping', res.data.token)
  })
/*   getShopping().then(res => {
    console.log(res);
  })
  getCommodity().then(res => {
    console.log(res);
  }) */
  return (
    <>
      <Outlet/>  
    </>
  )
}
